'''梁洁'''

class person:
    def __init__(self,name):
        self.name = name
    def who(self):
        print('我是一个人,我的名字是{}'.format(self.name))
class Student(person):
    def __init__(self,name,score):
        super().__init__(name)
        self.score = score
    def who(self):
        print('我是一个学生,我的名字是{}，我的语文成绩是{}'
              .format(self.name,self.score))
class Teacher(person):
    def __init__(self,name,course):
        super() .__init__(name)
        self.course = course
    def who(self):
        print('我是一个老师,我的名字是{},我教{}'
              .format(self.name,self.course))
def showInfo(x):
    x.who()
p = person('小蓝')
s = Student('小明',88)
t = Teacher('糖果','语文')
showInfo(p)
showInfo(s)
showInfo(t)
